package com.hskn.hss.module.common.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hskn.hss.module.common.mapper.CommonMapper;
import com.hskn.hss.module.common.service.ICommonService;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collection;
import java.util.Map;
import java.util.function.Function;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author hskn
 * @since 2021-04-30
 */
@Service
public class CommonServiceImpl implements ICommonService {

    @Resource
    CommonMapper commonMapper;

    @Override
    public String getTableComment(String tableName) {
        return commonMapper.getTableComment(tableName);
    }

    @Override
    public String getColumnComment(String tableName, String columnName) {
        return commonMapper.getColumnComment(tableName,columnName);
    }

    @Override
    public String getColumnDefaultValue(String tableName, String columnName) {
        return commonMapper.getColumnDefaultValue(tableName,columnName);
    }

    @Override
    public boolean saveBatch(Collection<T> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdateBatch(Collection<T> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean updateBatchById(Collection<T> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdate(T entity) {
        return false;
    }

    @Override
    public T getOne(Wrapper<T> queryWrapper, boolean throwEx) {
        return null;
    }

    @Override
    public Map<String, Object> getMap(Wrapper<T> queryWrapper) {
        return null;
    }

    @Override
    public <V> V getObj(Wrapper<T> queryWrapper, Function<? super Object, V> mapper) {
        return null;
    }

    @Override
    public BaseMapper<T> getBaseMapper() {
        return null;
    }

    @Override
    public Class<T> getEntityClass() {
        return null;
    }

}
